import request from "@/utils/request";

// 学院专业班级-级联方法
export function uploadFile(data) {
  return request({
    url: "/uploadController/upload",
    method: "post",
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    data,
  });
}

// 查询学期年份列表
export function fetchYearList(params = {}) {
  return request({
    url: "/term/term/yearList",
    method: "get",
    params,
  });
}

// 获取课程下拉
export function fetchEduCourseSelect(params = {}) {
  return request({
    url: "/edu/course/select",
    method: "get",
    params,
  });
}


// 教室查询下拉列表
export function fetchRoomSelect(params = {}) {
  return request({
    url: "/clssRoom/room/selectedList",
    method: "get",
    params,
  });
}